package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.business.domain.excel.WeekNumExcelHandlerAdapter;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.db.ID;
import lombok.Data;

import java.util.Date;

/**
 * 缓存信息
 *
 * @author ruoyi
 */
@Data
public class BizScore implements ID<Integer>
{
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Excel(name = "classname")
    private String className;

    @Excel(name = "sourcename")
    private String sourceName;

    @Excel(name = "person")
    private String userName;

    @Excel(name = "role")
    private String role;

    @Excel(name = "学号")
    private String userNumber;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "sourcetime_day", dateFormat = "yyyy年M月dd日")
    private Date sourcetimeDay;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "checkin_date", dateFormat = "yyyy年M月dd日")
    private Date checkinDate;

    @Excel(name = "task")
    private String task;

    @Excel(name = "task_status")
    private Integer taskStatus;

    @Excel(name = "standard_score")
    private Double standardScore;

    @Excel(name = "task_score")
    private Double taskScore;

    @Excel(name = "week_num", handler = WeekNumExcelHandlerAdapter.class)
    private Integer weekNum;

    @Excel(name = "course_project")
    private String courseProject;

    @Excel(name = "major_stage")
    private String majorStage;

    @Excel(name = "minor_stage")
    private String minorStage;

    @Excel(name = "备注1")
    private String note1;

    @Excel(name = "备注2")
    private String note2;

    @Override
    public Integer getId() {
        return id;
    }

}
